package com.gmail.wangzdl;

import java.util.ArrayList;

public class TestDemo2 {

    public   static   void  changeStr(String str){
        str = " welcome " ;
    }
    public   static   void  changeInteger(Integer aa){
    	System.out.println("aahashcode="+aa.hashCode());
        aa= 2 ;
        System.out.println("aahashcode="+aa.hashCode());
    }
    public   static   void  changeStringArray(String[] bb){
        bb=new String[10];
    	bb[0]="aaa" ;
    }
    public   static   void  changeArrayList(ArrayList b){
    	System.out.println("barrylist="+b);
        b.add("aa");
        System.out.println("barrylist="+b);
 
    }
     public   static   void  main(String[] args) {
        String str = new String (" 1234 ") ;
        changeStr(str);
        System.out.println(str);
        
        String[] strs= new String[10];
        changeStringArray(strs);
        System.out.println(strs[0]);
        
        
        Integer bb= new Integer(1);
        System.out.println("bbhashcode==="+bb);
        System.out.println(bb);

        changeInteger(bb);
        System.out.println(bb);
        
        ArrayList a= new ArrayList();
        System.out.println("aarrylist="+a);
        System.out.println(a);
        a.add("a");
        changeArrayList(a);
        System.out.println(a.size());
        
        Integer ia=1;
        Integer ib=new Integer(1);
        System.out.println(ia.equals(ib));    
 
    } 

}
